import request from '@/utils/request'

/**
 * 下载
 *
 * @param {String} id
 *
 * @returns {Promise}
 */
export function downloadAPI(id) {
  return request({
    url: `/download/${id}`,
    method: 'GET',
    responseType: 'blob'
  })
}
